package com.nowcoder.community.controller;

import com.nowcoder.community.util.CommunityUtil;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

//@Controller
//@RequestMapping("/ajax")
public class TestController {

//    @Autowired
//    private RestHighLevelClient restHighLevelClient;
//
//
//    @PostMapping("test1")
//    @ResponseBody
//    public String testAjax(String name, int age){
//        System.out.println(name);
//        System.out.println(age);
//        return CommunityUtil.getJSONString(0, "发布成功");
//    }


}
